import { defineStore } from "pinia";

export const useRepairStore = defineStore("repairs", {
  state: () => {
    return {
      repairs: [] as Array<Object>,
    };
  },
  getters: {
    getRepairs(state) {
      return () => state.repairs;
    },
  },
  actions: {
    addRepairs(item:Object) {
      this.repairs.push(item)
    },
    clearRepairs() {
      this.repairs=[]
    },
  },
});
